package zhongbo.java.air.flightpath.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

/**
 * @author WeiJin
 * @version 1.0
 * @since 2025/4/2 9:19
 */
@Component
@Slf4j
public class RedisSubscribeLogChanelListener implements MessageListener {
    @Override
    public void onMessage(Message message, byte[] bytes) {
        String msg = new String(message.getBody());
        log.info("redis订阅消息:{}", msg);
    }
}
